package cn.kgc.springday07.servlet;

import cn.kgc.springday07.entity.User;
import cn.kgc.springday07.form.UserForm;
import cn.kgc.springday07.service.UserService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 课工场
 * @date 2023/10/12
 * @description
 */
@Controller
public class UserServlet {

    @Resource
    private UserService userService;

    public List<User> getList(){
        List<User> list = userService.getList();
        return list;
    }

    public Boolean  addUser(UserForm userForm){
        return  userService.addUser(userForm);
    }


}
